{include file="file:$admin_theme_global_path/_header.tpl" current="pageparts_admin_bulkdeletepages" masthead="Bulk Delete"}
<div class="grid_4 sidenav">
	<h3>{t}Options{/t}</h3>
	<ul>
		<li><a href="{url}/pageparts/admin/index{/url}">{t}Back to Page List{/t}</a></li>
	</ul>
</div>
<div class="grid_12">
	{if $contentpages ne null}
		<form action="{url}/pageparts/admin/bulkdeletepages{/url}" method="post">
			<p>{t}Are you sure you want to delete all these pages?{/t}</p>
			{foreach from=$contentpages item=contentpage key=index}
				<p>
					<label>
						<input type="checkbox" name="bulk_checkbox[]" id="page_id_{$contentpage.id}" value="{$contentpage.id}" checked="checked" />
						{$contentpage.title}
					</label>
				</p>
			{/foreach}
			<p>{t}This cannot be undone!{/t}</p>
			<p>
				<input type="button" value="{t}No! Cancel!{/t}" onclick="location.href = '{url}/pageparts/admin/index{/url}';" />
				<input type="submit" value="{t}Yes, Delete{/t}">
			</p>
		</form>
	{/if}
</div>
{include file="file:$admin_theme_global_path/_footer.tpl"}
